package ar.uba.fi.RSACryptoFiuba.model.encrypt;

import ar.uba.fi.RSACryptoFiuba.model.RSAMessage;

public class RSAEncryptMessage extends RSAMessage{
	
	private String plainText;
	private String numericalRepresentation;
	private String processedNumericalRepresentation;
	private String remainNumericalRepresentation;
	private String actualM;
	private String actualC;
	private String encryptedText;
	private String eKey;
	private String nKey;
	
	public RSAEncryptMessage(){
		this.plainText = "";
		this.numericalRepresentation = "";
		this.processedNumericalRepresentation = "";
		this.remainNumericalRepresentation = "";
		this.actualM = "";
		this.actualC = "";
		this.encryptedText = "";
		this.eKey = "";
		this.nKey = "";
	}
	
	public boolean isCompleted() {
		return this.remainNumericalRepresentation.isEmpty();
	}
	public boolean isStarted() {
		return !this.numericalRepresentation.isEmpty();
	}
	
	public String getPlainText() {
		return plainText;
	}
	
	public void setPlainText(String plainText) {
		this.plainText = plainText;
	}

	public String getNumericalRepresentation() {
		return numericalRepresentation;
	}
	
	public void setNumericalRepresentation(String numericalRepresentation) {
		this.numericalRepresentation = numericalRepresentation;
		this.remainNumericalRepresentation = numericalRepresentation;
		this.processedNumericalRepresentation = "";
	}
	
	public String getProcessedNumericalRepresentation() {
		return processedNumericalRepresentation;
	}
	
	public void setProcessedNumericalRepresentation(String processedNumericalRepresentation) {
		this.processedNumericalRepresentation = processedNumericalRepresentation;
	}
	
	public String getRemainNumericalRepresentation() {
		return remainNumericalRepresentation;
	}
	
	public void setRemainNumericalRepresentation(String remainNumericalRepresentation) {
		this.remainNumericalRepresentation = remainNumericalRepresentation;
	}
	
	public String getActualM(){
		return actualM;
	}
	
	public void setActualM(String actualM){
		this.actualM = actualM;
	}
	
	public String getActualC(){
		return actualC;
	}
	
	public void setActualC(String actualC){
		this.actualC = actualC;
	}
	
	public String getEncryptedText() {
		return encryptedText;
	}
	
	public void setEncryptedText(String encryptedText) {
		this.encryptedText = encryptedText;
	}
	
	public String getEKey() {
		return eKey;
	}
	
	public void setEKey(String eKey) {
		this.eKey = eKey;
	}
	
	public String getNKey() {
		return nKey;
	}
	
	public void setNKey(String nKey) {
		this.nKey = nKey;
	}
	
}
